#ifndef __FLY_MEMORY_POOL_INNER_H__
#define __FLY_MEMORY_POOL_INNER_H__


#define MAX_FLY_HEADER (32)

#include <unistd.h>

typedef struct _node
{
    void* addr;
    struct _node* next;
}FlyNode;

typedef struct _chain
{
    FlyNode* using;
    FlyNode* valid;
    size_t length;
}FlyChain;

typedef struct _context {
    FlyChain chain[MAX_FLY_HEADER];
    struct _context* next;
    pthread_t tid;
}FlyCtx;


#endif // __FLY_MEMORY_POOL_INNER_H__